home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!brage
- From: brage@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN (Aaron Hicks)
- Newsgroups: comp.lang.c
- Subject: SVGALib and C++.
- Date: 31 Jan 1996 12:54:15 GMT
- Organization: Airdmhor
- Message-ID: <4enopn$56q@airdmhor.gen.nz>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- Okay, now I've just been poking about with G++ on Linux, and using the
- SVGAlib with the Nov1995 release of Linux. It's slow, and I can't see why,
- I'm writing an from an array (I suspect that an array is the problem...) to
- the virtual memory, as described in the README, using both vga.h and
- vgagl.h. On a 640x480x256 screen, I'm only getting one frame per second.
-
- This is odd, as the computer is a DX4100 with 16MB of RAM, with a PCI
- Diamond Stealth 64 Video VRAM with 2MB of memory. I've set up scga.config
- accordind to README.config, and README.S3.
-
- I suppose I should try a different storage object for the world, but I'm
- sort of lost to what to use. The object is of a fixed size (ie 640x480 by
- the object dbit which is...
-
- class dbit {
- int terra,aqua,aura,ether;
- public:
- void assortedfunctions();
- int colour();
- };
-
- ,which shouln't be too big)
-
- and currently the world is stored in
-
- class world {
- dbit maploc[639][479];
- public :
- void show();
- void you_get_the_idea();
- };
-
- which is plotted by
- void world::show()
- {
- for(y=0;y<=479;y++){
- for(x=0;x<=639;y++)
- gl_setpixel(x,y,maploc[x][y].colour);
- };
- };
-
- Suggestions?
-
- --
- ###################################################################
- # A message from Bloodrage, (brage@airdmhor.gen.nz), the home of #
- # MegaBBS and Realms of Insanity BBS. Christchurch, New Zealand. #
- # The truth is out there. #
- ###################################################################
-
-